import request from 'axios';


// 文件上传
export const updateFile = (formData) => {
  return request({
    url: '/api/upload/file',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    },
  })
}

// 聊天室文件上传
export const updateChatRoomFile = (formData) => {
  return request({
    url: '/api/upload/chatroom-file',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    },
  })
}